import { ref } from 'vue';

// stores/files.js
import { defineStore } from 'pinia';

export const useProgramFileStore = defineStore('programFileStore', () => {
  const filePreviewUrl = ref('');
  const fileName = ref('');

  function setFilePreviewUrl(url: string) {
    filePreviewUrl.value = url;
  }

  function setFileName(name: string) {
    fileName.value = name;
  }

  return {
    filePreviewUrl,
    fileName,
    setFilePreviewUrl,
    setFileName,
  };
});
